<!DOCTYPE html>
<html>
<head>
   <style>
       h2{color: aqua;}
       p{}
   </style>
</head>
<body>
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/9/28
 * Time: 18:22
 */
  header('Content-type:text/html;charset=utf-8');
  $name='小明';
  $score=78;
  if(is_int($score)||is_float($score))
  {
      if($score>=90&&$score<=100){
          $str='A';
      }elseif($score>=80&&$score<90){
          $str='B';
      }elseif ($score>=70&&$score<80){
          $str='C';
      }elseif($score>=60&&$score<70){
          $str='D';
      }elseif ($score>=0&&$score<60){
          $str='E';
      }else{
          $str='the score of student is limited in 0~100!';
      }
  }else{
      $str='the score of student is illegal';
  }
echo "<h2>学生成绩等级</h2><p>学生姓名:".$name."<p>学生分数:".$score."分<p>成绩等级:".$str;
?>
</body>
</html>